
import 'Definition.dart';

class MessageModel extends Definition {
  
	String? content;
	String? mid;
	/// text 纯文本 image 图片 video 短视频
	String? type;
	/// Single/Group 消息类型（单聊/群组聊天）
	String? category;
	/// plaintext|base64|json|hex|sha1|sha128|sha256|md5
	String? crypto;
	int? suid;
	int? rid;
	int? send_time;
	String? id;

  @override
  Map<String, dynamic> toJson() {
    return {
			"content": content,
			"mid": mid,
			"type": type,
			"category": category,
			"crypto": crypto,
			"suid": suid,
			"rid": rid,
			"send_time": send_time,
			"id": id,
    };
  }

  @override
  void fromJson(Map<String, dynamic> json) {
		content = json["content"];
		mid = json["mid"];
		type = json["type"];
		category = json["category"];
		crypto = json["crypto"];
		suid = json["suid"];
		rid = json["rid"];
		send_time = json["send_time"];
		id = json["id"];
  }
  
}
  